<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<?php $this->load->view('admin/_begin') ?>
<script type="text/javascript">
  $(document).ready(function(){
    $('#shortcuts').hide();
  });
</script>
<form id="form_user_create" method="post" action="<?php echo site_url('admin/'.$this->router->fetch_class() . '/update_profile') ?>">
  <input type="hidden" value="<?php echo empty($obj['id'])?'':$obj['id']?>" name="id"/>
  <div class="tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
    <ul class="tab-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
      <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active">
        <a href="#user-details-tab"><span><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.details') ?></span></a>
      </li>
      <li class="ui-state-default ui-corner-top">
        <a href="#user-password-tab"><span><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.password') ?></span></a>
      </li>
    </ul>
    <!-- Content tab -->
    <div id="user-details-tab" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
      <fieldset>
        <ul>
          <li class="even">
            <label for="first_name">
              <?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.first_name') ?>
            </label>
            <div class="input">
              <input type="text" id="first_name" name="first_name" 
                     value="<?php echo empty($obj['first_name']) ? '' : $obj['first_name'] ?>" >
            </div>
          </li>
          <li>
            <label for="last_name"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.last_name') ?></label>
            <div class="input">
              <input type="text" id="last_name" value="<?php echo empty($obj['last_name']) ? '' : $obj['last_name'] ?>" name="last_name">
            </div>
          </li>
          <li>
            <label for="username"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.username') ?> <span>*</span></label>
            <div class="input"><?php echo empty($obj['username']) ? '' : $obj['username'] ?></div>
          </li>
          <li class="even">
            <label for="display_name"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.display_name') ?></label>
            <div class="input">
              <input type="text" id="display_name" value="<?php echo empty($obj['display_name']) ? '' : $obj['display_name'] ?>" name="display_name">
            </div>
          </li>
        </ul>
      </fieldset>
    </div>
    <div id="user-password-tab" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
      <fieldset>
        <ul>
          <li class="even">
            <label for="password"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.password') ?><span>*</span></label>
            <div class="input">
              <input type="password" autocomplete="off" id="password" value="" name="password">						
            </div>
          </li>
        </ul>
      </fieldset>
    </div>
  </div>
  <div class="buttons float-right padding-top">
    <button class="btn blue" value="save" name="btnAction" type="submit">
      <span><?php echo $this->lang->line('btn.save') ?></span>
    </button>
    <a class="btn gray cancel" href="<?php echo site_url('admin/'.$this->router->fetch_class()) ?>"><?php echo $this->lang->line('btn.cancel') ?></a>
  </div>
</form>
<?php $this->load->view('admin/_end') ?>